﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="FckHTML.aspx.cs" Inherits="ZF.WS.UserControls.FckHTML" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
        <script src="/js/jQuery.js" type="text/javascript"></script>

    <script src="js/jquery-1.4.2.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
         
        <script>
            var bAutoWidth = <%=this.AW==1?"true":"false" %>;
            var bAutoHeight = <%=this.AH==1?"true":"false" %>;
            var gid = "<%=this.gid %>";
        </script>
        <script>
            var iframe = null;
            var isLoaded = true;
            $(function() {
                setSize();
                isLoading = false;
            });
            function setSize() {
                if (iframe == null)
                    iframe = $(parent.document).find("#" + gid);

                if (iframe.length > 0 && isLoaded) {
                    if (bAutoWidth) {
                        iframe.width($(document).width());
                    }
                    if (bAutoHeight) {
                        iframe.height($(document).height());
                    }
                }
            }
            setInterval(setSize, 1000);
        </script>
        
        
        <%=this.Text %>
        
    </div>
    </form>
</body>
</html>
